#ifndef HEADERFRASE_H_
#define HEADERFRASE_H_

#include <bitset>
#include "../BloqArch/IHeader.h"


class HeaderFrase: public IHeader {
private:
	std::bitset<1024> mapaBloquesLibres;

public:
	HeaderFrase(unsigned int tam);
	virtual ~HeaderFrase();

	// IHeader
	unsigned int getPosBloqueLibre();
	void liberarBloque(const unsigned int pos);

	// IBloque
	unsigned int getSize() const;
	unsigned int serialize(char* &arr);
	void deSerialize(char* arr);
};

#endif /* HEADERFRASE_H_ */
